cmake_minimum_required(VERSION 3.10)

project(task-2-Rune)

find_package(OpenCV REQUIRED)

add_library(RuneDetect SHARED src/RuneDetect.cpp)

target_include_directories(RuneDetect PUBLIC include)

target_include_directories(RuneDetect PUBLIC ${OpenCV_INCLUDE_DIRS})

target_link_libraries(RuneDetect ${OpenCV_LIBS})

add_executable(task2 main.cpp)

target_link_libraries(task2 RuneDetect)